/**
 * 观察者-看股票的同事
 * @author liaosh
 * @date 2022-10-16 19:37
 */
public class StockObserver extends Observer {

    public StockObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void update() {
        System.out.println(sub.getSubjectState() + "，" + name + " 关闭股票行情，继续工作");
    }
}
